<template>
  <div>
    <Authc permissions="invoice:taxpayer:detail">
      <Tooltip placement="top" content="人工平账">
        <Icon class="normal-icon-style" type="ios-create" @click="handleDetail('detail')" />
      </Tooltip>
    </Authc>
  </div>
</template>
<script>
import { Icon, Tooltip, Message, Modal } from "view-design";
import { namespace } from "../../module";
import Authc from "@/components/Authc";

export default {
  props: {
    row: Object
  },
  model: {
    event: ["onEdit"]
  },
  components: {
    Icon,
    Tooltip,
    Message,
    Authc
  },
  data: function() {
    return {};
  },
  methods: {
    handleDetail(type) {
      let id = this.$props.row.id;
      switch (type) {
        case 'detail':
          this.$router.push("/order/admin/orderCenter/cDetailForm");
          break
          default:
      }
    }
  }
};
</script>
<style lang="less">
.normal-icon-style {
  font-size: 20px !important;
  color: #57a3f3 !important;
}
.error-icon-style {
  font-size: 20px !important;
  color: #ff0000 !important;
}
</style>
